bytes.Buffer.off (field)
33 uses
bytes (current package)
buffer.go#L22: off int // read at &buf[off], write at &buf[len(buf)]
buffer.go#L54: func (b *Buffer) Bytes() []byte { return b.buf[b.off:] }
buffer.go#L71: return string(b.buf[b.off:])
buffer.go#L75: func (b *Buffer) empty() bool { return len(b.buf) <= b.off }
buffer.go#L79: func (b *Buffer) Len() int { return len(b.buf) - b.off }
buffer.go#L100: b.buf = b.buf[:b.off+n]
buffer.go#L108: b.off = 0
buffer.go#L129: if m == 0 && b.off != 0 {
buffer.go#L146: copy(b.buf, b.buf[b.off:])
buffer.go#L151: b.buf = growSlice(b.buf[b.off:], b.off+n)
buffer.go#L154: b.off = 0
buffer.go#L261: m, e := w.Write(b.buf[b.off:])
buffer.go#L265: b.off += m
buffer.go#L328: n = copy(p, b.buf[b.off:])
buffer.go#L329: b.off += n
buffer.go#L346: data := b.buf[b.off : b.off+n]
buffer.go#L347: b.off += n
buffer.go#L362: c := b.buf[b.off]
buffer.go#L363: b.off++
buffer.go#L379: c := b.buf[b.off]
buffer.go#L381: b.off++
buffer.go#L385: r, n := utf8.DecodeRune(b.buf[b.off:])
buffer.go#L386: b.off += n
buffer.go#L400: if b.off >= int(b.lastRead) {
buffer.go#L401: b.off -= int(b.lastRead)
buffer.go#L418: if b.off > 0 {
buffer.go#L419: b.off--
buffer.go#L440: i := IndexByte(b.buf[b.off:], delim)
buffer.go#L441: end := b.off + i + 1
buffer.go#L446: line = b.buf[b.off:end]
buffer.go#L447: b.off = end
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |